/**
 * Created by dale on 2017/9/26.
 */
var resList;

$(document).ready(function (){
    resList= $('#resList');
    $('.xh-datagrid-toolbar').parseToolbar();

    resList.initDataGrid(baseUrl+'ims/res/getRes');

    DataGrid.onDblClickRow=function (rowIndex, rowData) {
        window.top.xhTop.showModal({
            title: rowData['sProdName']+'库存明细',
            content: '<iframe src="'+baseUrl+'ims/res/resDetail?iProdId='+rowData['iProdId']+'"  style="width: 100%;;border-style: none;padding: 0px;"  scrolling="yes"  height="450px;" ></iframe>',
            size:'lg',
        });
    }




});